<template>
  <div>
    <p>MyComponent</p>
    <!-- 作用域插槽 -->
    <slot :obj="obj">slot 默认内容</slot>
  </div>
</template>

<script>
export default {
  name: 'MyComponent',
  data: () => ({
    obj: {
      name: '张智琦',
      age: 18
    }
  })
}
</script>
